Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NGeometry2D Class / GetMedicenter Method / GetMedicenter(NPoint[],Int32,Int32) Method
Array of points.
The number of points to evaluate.
The index of the first point.


In This Topic
    GetMedicenter(NPoint[],Int32,Int32) Method
    In This Topic
    Calculates the medicenter (center of mass) of the points in the specified points array.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetMedicenter( _
       ByVal points() As NPoint, _
       ByVal startIndex As System.Integer, _
       ByVal count As System.Integer _
    ) As NPoint
    'Usage
     
    
    Dim points() As NPoint
    Dim startIndex As System.Integer
    Dim count As System.Integer
    Dim value As NPoint
     
    value = NGeometry2D.GetMedicenter(points, startIndex, count)
    public static NPoint GetMedicenter( 
       NPoint[] points,
       System.int startIndex,
       System.int count
    )

    Parameters

    points
    Array of points.
    startIndex
    The number of points to evaluate.
    count
    The index of the first point.

    Return Value

    the medicenter
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also